package com.waya.arraylist;

import java.util.ArrayList;

public class ArrayListDemo {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("wangyang");
        arrayList.add("rose");
        arrayList.add("joke");
        for(int i= 0 ; i < arrayList.size(); i++){
            System.out.println(arrayList.get(i));
        }
    }
}
